package com.peter.proxy.hkgolden.core;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.regex.Pattern;

/**
 *
 */
public interface Constants {

	String URL_TOPICS = "http://forum1.hkgolden.com/topics.aspx?type=BW".intern();
	String URL_HOST = "http://forum${id}.hkgolden.com".intern();
	String URL_PATH_TOPICS = "/topics.aspx?type=${type}".intern();
	String URL_PATH_TOPIC = "/view.aspx?message=${id}".intern();
	String URL_TAG_ID = "${id}".intern();
	String URL_TAG_TYPE = "${type}".intern();

	String TAG_ID = "id".intern();
	String TAG_TD = "td".intern();
	String TAG_A = "a".intern();
	String ATTR_HREF = "href".intern();
	String ATTR_USERID = "userid".intern();
	String ATTR_USERNAME = "username".intern();

	Pattern REGEX_THREAD = Pattern.compile("Thread_No(\\d)+");
	Pattern REGEX_PARAM = Pattern.compile("[\\w]+=[\\w]*");

	DateFormat DATE_FORMAT = new SimpleDateFormat("MM/dd/yyyy hh:mm");

}
